<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>潜在客户</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp" %>

    <script type="text/javascript" src="/static/js/system/potentialCustomer.js"></script>
</head>
<body>

<!--begin信息列表-->
<table id="potentialCustomer_datagrid"></table>
<!--end信息列表-->

<!--begin左上角工具栏-->
<div id="potentialCustomer_tb">
        <shiro:hasPermission name="potentialCustomer:save">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">增加</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="potentialCustomer:update">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        </shiro:hasPermission>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="view">查看</a>

        <shiro:hasPermission name="customerFollowRecord:save">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-follow',plain:true" data-cmd="follow">跟踪</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="potentialCustomer:positive">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-positive',plain:true" data-cmd="positive">转为正式学员</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="potentialCustomer:putlToPool">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-people',plain:true" data-cmd="putToPool">放进资源池</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="potentialCustomer:tsetRegistration">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-test',plain:true" data-cmd="registration">考试登记</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="potentialCustomer:delete">
            <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" data-cmd="exportJxl">导出</a>
        </shiro:hasPermission>

        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
     <input id="keywords" prompt="客户名/营销员/qq"
           class="easyui-textbox"  data-options="iconCls:'icon-search'" style="width:180px">
    <input id="beginDate" type="text" class="easyui-datebox"> </input>
    <input id="endDate" type="text" class="easyui-datebox"> </input>
    <a id="btn_search"></a>

    <br>
</div>
<!--end左上角工具栏-->

<!--begin添加/编辑对话框-->
<div id="potentialCustomer_dialog" align="center">
    <form id="potentialCustomer_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="potentialCustomerId">
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name" prompt="请输入客户姓名"></td>
                <td>联系电话:</td>
                <td>
                    <input class="easyui-textbox"  type="text" name="tell" prompt="请输入客户电话" invalidMessage="该号码已存在"
                           validType="remote['/potentialCustomer/validateTell?id='+potentialCustomerId.value,'tell']"  />
                </td>


                <td>邮箱:</td>
                <td><input class="easyui-textbox" name="email" prompt="请输入客户邮箱"></td>
            </tr>

            <tr>
                <td>意向校区:</td>
                <td><input class="easyui-combobox myinputdom" name="interestCampu.id" prompt="请选择意向校区" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=intentionDistrict',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>客户来源:</td>
                <td><input class="easyui-combobox myinputdom" name="customerSource.id" prompt="请选择客户来源" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=customerSource',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>微信号:</td>
                <td><input class="easyui-textbox" name="wechat" prompt="请输入客户微信"></td>
            </tr>
            <tr>
                <td>QQ号:</td>

                <td>
                    <input class="easyui-numberbox"  type="text" name="qq" prompt="请输入客户QQ" invalidMessage="该QQ已存在"
                           validType="remote['/potentialCustomer/validateQq?id='+potentialCustomerId.value,'qq']"  />
                </td>

                <td>年龄:</td>
                <td><input class="easyui-numberbox" name="age" prompt="请输入客户年龄"></td>
                <td>性别:</td>
                <td><input class="easyui-combobox myinputdom" name="gender" prompt="请选择客户性别" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '男', value: '1' },{
                           label: '女',value: '0'}],
                           panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>住址:</td>
                <td><input class="easyui-textbox" name="address" prompt="请输入客户住址"></td>
                <td>学校:</td>
                <td><input class="easyui-textbox" name="school" prompt="请输入客户毕业学校"></td>
                <td>学校客户:</td>
                <td><input class="easyui-combobox myinputdom" name="schoolCustomer.id" prompt="请选择高校名称" data-options=
                        "url:'/bigClient/listAll',valueField:'id',
                        textField:'schoolName',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>学历:</td>
                <td><input class="easyui-combobox myinputdom" name="education.id" prompt="请选择客户学历" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=record',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>地域:</td>
                <td><input class="easyui-combobox myinputdom" name="regional.id" prompt="请选择客户地域" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=regional',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>大学入学时间:</td>
                <td><input class="easyui-datebox" name="collegeAdmissionDate" prompt="请选择大学入学时间"></td>
            </tr>
            <tr>
                <td>专业:</td>
                <td><input class="easyui-textbox" name="professional" prompt="请输入客户专业"></td>
                <td>大学班级:</td>
                <td><input class="easyui-textbox" name="universityClass" prompt="请输入大学班级"></td>
                <td>工作年限:</td>
                <td><input class="easyui-numberbox" name="workSeniority" prompt="请输入工作年限"></td>
            </tr>
            <tr>
                <td>介绍人:</td>
                <td><input class="easyui-combobox myinputdom" name="introducer.id" prompt="请选择介绍人" data-options=
                        "url:'/employee/listAll',valueField:'id',
                        textField:'username',panelHeight:'auto'"></td>
                <td>意向班级:</td>
                <td><input class="easyui-combobox myinputdom" name="interestClass.id" prompt="请选择意向班级" data-options=
                        "url:'/grade/listAllInterentGrade',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>意向程度:</td>
                <td><input class="easyui-combobox myinputdom" name="interestDegree.id" prompt="请选择意向程度" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=intention',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>意向学科:</td>
                <td><input class="easyui-combobox myinputdom" name="interestSubject.id" prompt="请选择意向学科" data-options=
                        "url:'/curriculumSeries/listAll',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>访约时间:</td>
                <td><input class="easyui-datebox" name="interviewDate" prompt="请选择访约时间"></td>
                <td>付费情况:</td>
                <td><input class="easyui-combobox myinputdom" name="paymentState" prompt="请选客户付费情况" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '已付款', value: '1' },{
                           label: '未付款',value: '0'}],
                           panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>联系形式:</td>
                <td><input class="easyui-combobox myinputdom" name="currentState" prompt="请选择当前的联系形式" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '线上', value: '1' },{
                           label: '线下',value: '0'}],
                           panelHeight:'auto'"></td>
                <td>电脑情况:</td>
                <td><input class="easyui-combobox myinputdom" name="computerCarry" prompt="请选择是否携带" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '携带', value: '1' },{
                           label: '未携带',value: '0'}],
                           panelHeight:'auto'"></td>

            </tr>

            <tr>
                <td>备注:</td>
                <td><input name="remark" id="myRemark"  class="easyui-textbox" data-options="multiline:true"
                           style="width:300px;height:60px">
                </td>

            </tr>
            <tr>
                <td>客户关注信息:</td>
                <td><input name="customerFocus" id="myCustomerFocus" class="easyui-textbox"  data-options="multiline:true"
                           style="width:300px;height:60px">
                </td>

            </tr>


        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin添加/编辑对话框底部按钮-->
<div id="potentialCustomer_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
</div>
<!--end添加/编辑对话框底部按钮-->

<!--begin跟踪对话框底部按钮-->
<div id="customerFollowRecord_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save"
       data-cmd="customerFollowRecord_commit">提交</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel"
       data-cmd="customerFollowRecord_cancel">取消</a>
</div>
<!--end跟踪对话框底部按钮-->

<!--begin考试登记对话框底部按钮-->
<div id="testRegistration_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save"
       data-cmd="testRegistration_commit">提交</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel"
       data-cmd="testRegistration_cancel">取消</a>
</div>
<!--end考试登记对话框底部按钮-->

<!--begin学员转正对话框底部按钮-->
<div id="positive_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="positive_commit">提交</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel"
       data-cmd="positive_cancel">取消</a>
</div>
<!--end学员转正对话框底部按钮-->


<!--begin跟踪对话框-->
<div id="customerFollowRecord_dialog" align="center">
    <form id="customerFollowRecord_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="customerFollowRecordId">
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name"></td>
                <td>联系电话:</td>
                <td><input class="easyui-textbox" name="tell"></td>
                <td>邮箱:</td>
                <td><input class="easyui-textbox" name="email"></td>
            </tr>

            <tr>
                <td>QQ号:</td>
                <td><input class="easyui-textbox" name="qq"></td>
                <td>联系形式:</td>
                <td><input class="easyui-combobox" name="currentState" prompt="请选择联系形式" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '线下', value: '1' },{
                           label: '线上',value: '0'}],
                           panelHeight:'auto'"></td>
                <td>跟踪人:</td>
                <td><input class="easyui-combobox" name="follower.id" prompt="请选择跟踪人" data-options=
                        "url:'/employee/listAll',valueField:'id',
                        textField:'username',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>上次跟踪时间:</td>
                <td><input class="easyui-datebox" name="lastFollowDate"></td>
                <td>意向班级:</td>
                <td><input class="easyui-combobox" name="interestClass.id" prompt="请选择意向班级" data-options=
                        "url:'/grade/listAllInterentGrade',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>毕业学校:</td>
                <td><input class="easyui-textbox" name="school"></td>
            </tr>

            <tr>

                <td>交流目的:</td>
                <td><input class="easyui-combobox" name="communicationPurpose.id" prompt="请选择交流目的" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=communicationPurpose',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>交流方式:</td>
                <td><input class="easyui-combobox" name="communicationMode.id" prompt="请选择交流方式" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=communication',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>意向程度:</td>
                <td><input class="easyui-combobox" name="interestDegree.id" prompt="请选择意向程度" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=intention',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>下次跟踪时间:</td>
                <td><input class="easyui-datebox" name="nextFollowDate" prompt="请输入下次跟踪时间"></td>
                <td>跟踪时长:</td>
                <td><input class="easyui-numberbox" name="followTimeLength" prompt="请输入跟踪时长"></td>

            </tr>


            <tr>
                <td>摘要:</td>
                <td><input name="summary" class="easyui-textbox" data-options="multiline:true"
                           style="width:300px;height:60px">
                </td>

            </tr>
            <tr>
                <td>交流内容:</td>
                <td><input name="communicationContent" class="easyui-textbox" data-options="multiline:true"
                           style="width:300px;height:60px">
                </td>
            </tr>
        </table>
    </form>
</div>
<!--end跟踪对话框-->


<!--begin考试登记对话框-->
<div id="testRegistration_dialog" align="center">
    <form id="testRegistration_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="testRegistrationRecordId">
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>意向班级:</td>
                <td><input class="easyui-combobox" name="interestClass.id" prompt="请选择意向班级" data-options=
                        "url:'/grade/listAllInterentGrade',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
            </tr>
            <tr>

                <td>考试类型:</td>
                <td><input class="easyui-combobox" name="testType.id" prompt="请选择考试类型" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=testTypes',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>考试时间:</td>
                <td><input class="easyui-datebox" name="testDate" prompt="请输入考试时间"></td>
            </tr>
            <tr>
                <td>考试备注:</td>
                <td><input name="testNode" class="easyui-textbox" data-options="multiline:true"
                           style="width:300px;height:60px">
                </td>

            </tr>
        </table>
    </form>
</div>
<!--end考试对话框-->

<!--begin学员转正对话框-->
<div id="positive_dialog" align="center">
    <form id="positive_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="positiveId">
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name" prompt="请输入客户姓名"></td>
                <td>QQ号:</td>
                <td><input class="easyui-numberbox" name="qq" prompt="请输入客户QQ"></td>

                <td>邮箱:</td>
                <td><input class="easyui-textbox" name="email" prompt="请输入客户邮箱"></td>
            </tr>
            <tr>
                <td>联系电话:</td>
                <td><input class="easyui-numberbox" name="tell" prompt="请输入客户电话"></td>
                <td>年龄:</td>
                <td><input class="easyui-numberbox" name="age" prompt="请输入客户年龄"></td>
                <td>性别:</td>
                <td><input class="easyui-combobox" name="gender" prompt="请选择客户性别" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '男', value: '1' },{
                           label: '女',value: '0'}],
                           panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>住址:</td>
                <td><input class="easyui-textbox" name="address" prompt="请输入客户住址"></td>
                <td>学校:</td>
                <td><input class="easyui-textbox" name="school" prompt="请输入客户毕业学校"></td>
                <td>工作年限:</td>
                <td><input class="easyui-numberbox" name="workSeniority" prompt="请输入工作年限"></td>
            </tr>
            <tr>
                <td>意向校区:</td>
                <td><input class="easyui-combobox" name="interestCampu.id" prompt="请选择意向校区" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=intentionDistrict',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>客户来源:</td>
                <td><input class="easyui-combobox" name="customerSource.id" prompt="请选择客户来源" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=customerSource',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>营销人员:</td>
                <td><input class="easyui-combobox" name="marketer.id" prompt="请选择营销人员" data-options=
                        "url:'/employee/listAll',valueField:'id',
                        textField:'username',panelHeight:'auto'"></td>
            </tr>

            <tr>
                <td>学历:</td>
                <td><input class="easyui-combobox" name="education.id" prompt="请选择客户学历" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=record',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>学校客户:</td>
                <td><input class="easyui-combobox" name="schoolCustomer.id" prompt="请选择高校名称" data-options=
                        "url:'/bigClient/listAll',valueField:'id',
                        textField:'schoolName',panelHeight:'auto'"></td>
                <td>意向班级:</td>
                <td><input class="easyui-combobox" name="interestClass.id" prompt="请选择意向班级" data-options=
                        "url:'/grade/listAllInterentGrade',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>联系形式:</td>
                <td><input class="easyui-combobox" name="currentState" prompt="请选择当前的联系形式" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '线下', value: '1' },{
                           label: '线上',value: '0'}],
                           panelHeight:'auto'"></td>
                <td>付费情况:</td>
                <td><input class="easyui-combobox" name="paymentState" prompt="请选客户付费情况" data-options=
                        " valueField: 'value',textField: 'label',
                            data: [{
                           label: '已付款', value: '1' },{
                           label: '未付款',value: '0'}],
                           panelHeight:'auto'"></td>
                <td>就业意向:</td>
                <td><input class="easyui-combobox" name="intentionjob.id" prompt="请选择就业意向" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=employment',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>身份证号码:</td>
                <td><input class="easyui-numberbox" name="idNumber" prompt="请选择输入身份证号码"></td>
                <td>紧急联系人:</td>
                <td><input class="easyui-textbox" name="emergencyman" prompt="请输入紧急联系人"></td>
                <td>紧急方式:</td>
                <td><input class="easyui-numberbox" name="emergencytel" prompt="请输入紧急联系电话"></td>
            </tr>

            <tr>
                <td>基础优惠金额:</td>
                <td><input class="easyui-textbox" name="tuition.basicdiscounts" prompt="基础优惠金额"></td>
                <td>其他优惠金额:</td>
                <td><input class="easyui-textbox" name="tuition.otherdiscounts" prompt="其他优惠金额"></td>
                <td>定金:</td>
                <td><input class="easyui-textbox" name="tuition.deposit" prompt="本次缴纳金额"></td>
            </tr>
            <tr>
                <td>总学费:</td>
                <td><input class="easyui-textbox" name="tuition.originaltuition" prompt="总费用"></td>
                <td>付款方式:</td>
                <td><input class="easyui-combobox" name="payment.id" prompt="选择付款方式" data-options=
                        "url:'/dataDictionary1/selectDataDictionaryItemsBySn?sn=paymentDethod',valueField:'id',
                        textField:'name',panelHeight:'auto'"></td>
                <td>最后付款时间:</td>
                <td><input class="easyui-datebox" name="tuition.deadline" prompt="最后付款时间"></td>
            </tr>
        </table>
        <table>
            <tr>
                <td>说明:</td>
                <td><input class="easyui-textbox" name="tuition.explains" data-options="multiline:true"
                           style="width:500px;height:60px" ></td>
            </tr>
            <tr>
                <td>工作经历:</td>
                <td><input name="workExperience" class="easyui-textbox" data-options="multiline:true"
                           style="width:500px;height:60px" prompt="请输入工作经历">
                </td>
            </tr>
        </table>
    </form>
</div>
<!--end学员转正对话框-->

</body>
</html>
